migration guide: Add a paragraph about GtkBox's pack-type
authorTimm Bäder <mail@baedert.org>
Sat, 29 Dec 2018 08:53:16 +0000 (09:53 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Jan 2019 00:30:46 +0000 (19:30 -0500)
docs/reference/gtk/migrating-3to4.xml

index fcb430adad01aa8cbeb90fd0aa49a490e43a52f4..111f6f6975f0722106a8dbf5f75512c0cc4b5101 100644 (file)
       </para>
     </section>
 
+    <section>
+      <title>Stop using GtkBox's pack-type child property</title>
+      <para>
+        In order to improve performance and simplify the widget, GtkBox lost its
+        'pack-type' child property. In GTK+4, every GtkBox instance has a simple
+        list of child widgets that it allocates from start to end.
+        The old behavior of pack-type=END can be emulated by simply making the
+        box child in the center hexpand and right-align the ones at the end.
+      </para>
+    </section>
+
   </section>
 
   <section>